package com.haredot.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "sys.alipay")
public class AlipayProperties {
    /**
     * 支付宝网关地址
     */
    private String serverUrl ;
    /**
     * APPID
     */
    private String appId ;
    /**
     * 应用私钥
     */
    private String privateKey;
    /**
     * 格式
     */
    private String format = "json";
    /**
     * 编码
     */
    private String charset = "UTF-8";
    /**
     * 支付宝公钥
     */
    private String alipayPublicKey;
    /**
     * 签名方式
     */
    private String signType = "RSA2";
    /**
     * 支付成功授权回调地址
     */
    private String returnUrl  ;

    /**
     * 授权异步回调地址
     */
    private String notifyUrl ;


    private String authorizeUrl = "https://openauth.alipay.com/oauth2/appToAppAuth.htm";
    /**
     * 授权回调地址
     */
    private String authorizeReturnUri ;

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getAuthorizeUrl() {
        return authorizeUrl;
    }

    public void setAuthorizeUrl(String authorizeUrl) {
        this.authorizeUrl = authorizeUrl;
    }

    public String getAuthorizeReturnUri() {
        return authorizeReturnUri;
    }

    public void setAuthorizeReturnUri(String authorizeReturnUri) {
        this.authorizeReturnUri = authorizeReturnUri;
    }


}
